home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 3 / BBS in a box - Trilogy III.iso / Files / System7 tools / Frontier / Frontier SDK 2.1 / Toolkits / Applet Toolkit / appletfiles.h < prev    next >
Encoding:
C/C++ Source or Header  |  1992-10-11  |  1.6 KB  |  83 lines  |  [TEXT/KAHL]

  1. /*© Copyright 1988-1992 UserLand Software, Inc.  All Rights Reserved.*/
  2.  
  3.  
  4. #define filesinclude
  5.  
  6.  
  7. #ifndef appletdefsinclude
  8.  
  9.     #include "appletdefs.h"
  10.     
  11. #endif
  12.  
  13.  
  14. typedef struct tyfileinfo { /*flattens interface for getting file information*/
  15.  
  16.     bigstring fname;
  17.     
  18.     OSErr errcode;
  19.     
  20.     boolean flfolder, fllocked, flbundle, flbusy, flalias;    
  21.     
  22.     boolean flinvisible; 
  23.     
  24.     OSType filecreator, filetype;
  25.     
  26.     long timecreated, timemodified;
  27.     
  28.     long sizedatafork, sizeresourcefork;
  29.     
  30.     short ixlabel;
  31.     
  32.     Point iconposition; 
  33.     } tyfileinfo;
  34.     
  35.  
  36. typedef boolean (*sfcallback) (tyfileinfo *);
  37.  
  38.     
  39. boolean filegetinfo (bigstring, short, tyfileinfo *);
  40.  
  41. boolean sfdialog (boolean, bigstring, short *, sfcallback, OSType);
  42.  
  43. boolean fileparsevolname (bigstring, short *);
  44.  
  45. boolean filedelete (bigstring, short);
  46.  
  47. void fileclose (short);
  48.  
  49. long filegetsize (short);
  50.  
  51. boolean fileseteof (short, long);
  52.  
  53. boolean fileopenorcreate (bigstring, short, OSType, OSType, short *);
  54.  
  55. boolean filenew (bigstring, short, OSType, OSType, short *);
  56.  
  57. boolean fileopen (bigstring, short, short *);
  58.  
  59. boolean filetruncate (short);
  60.  
  61. boolean filewrite (short, long, void *);
  62.  
  63. boolean fileread (short, long, void *);
  64.  
  65. boolean filewritehandle (short, Handle);
  66.  
  67. boolean filereadhandle (short, long, Handle *);
  68.  
  69. boolean filereadwholefile (short, Handle *);
  70.  
  71. boolean filegetchar (short, byte *);
  72.  
  73. boolean filefrompath (bigstring, bigstring);
  74.  
  75. boolean folderfrompath (bigstring, bigstring);
  76.  
  77. boolean pathtofileinfo (bigstring, bigstring, short *);
  78.  
  79. boolean directorytopath (long, short, bigstring);
  80.  
  81. boolean fileinfotopath (bigstring, short, bigstring);
  82.  
  83.